//
//  AppDelegate.swift
//  微博YX
//
//  Created by apple on 15/11/22.
//  Copyright © 2015年 lyx. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
//        创建tarBar的控制器
        let tabBar = YXMainViewController()
//        设置窗口的跟控制器
        window?.rootViewController = tabBar
        
//        window?.rootViewController?.view.backgroundColor = UIColor.redColor()
        
        
        
        window?.makeKeyAndVisible()
        return true
    }

   

}

